package cn.scau.server.service.impl;

import cn.scau.server.pojo.ApplicationItems;
import cn.scau.server.mapper.ApplicationItemsMapper;
import cn.scau.server.service.ApplicationItemsService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 代码不跑我先跑
 * @since 2025-03-30
 */
@Service
public class ApplicationItemsServiceImpl extends ServiceImpl<ApplicationItemsMapper, ApplicationItems> implements ApplicationItemsService {

    @Override
    public List<ApplicationItems> getByFlowId(Integer processId) {
        QueryWrapper<ApplicationItems> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("flow_id", processId);
        return list(queryWrapper);
    }
}
